<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
</head>
<body>
    <div th:fragment="editBlock" class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none">

        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel"></h4>
                </div>
                <form id="editform" class="modal-body" action="#" >
                    <input type="hidden" name="guid"  />
                    <div class="form-group">
                        <label class="form-label" th:for="estateGuid" >物业小区</label>
                        <select name="estateGuid"  class="form-control">
                            <option value="">--请选择--</option>
                            <option th:each="estate:${formBean.estateList}"
                                    th:value="${estate.guid}"
                                    th:text="${estate.estateName}"
                                    th:selected="${estate.guid} == ${formBean.estateGuid}? 'selected' : '#'"></option>
                        </select>
                        <span  class="has-error"  id="estateGuid_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="custId" >通联商户ID</label>
                        <input type="text"  name="custId"  class="form-control"/>
                        <span  class="has-error"  id="custId_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="appId" >通联应用ID</label>
                        <input type="text"  name="appId"  class="form-control"/>
                        <span  class="has-error"  id="appId_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="appKey" >通联密钥</label>
                        <input type="text"  name="appKey"  class="form-control"/>
                        <span  class="has-error"  id="appKey_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="version" >通联版本</label>
                        <input type="text"  name="version"  class="form-control"/>
                        <span  class="has-error"  id="version_errorMsg"/>
                    </div>
                    <div class="form-group" >
                        <label  class="form-label" th:for="enable"  >启用</label>
                        <div class="radio-content">
                            <div class="radio-item"><input type="radio" name="enable"  value="1" />启用</div>
                            <div class="radio-item"><input type="radio" name="enable"  value="0" />禁用</div>
                        </div>
                        <span  class="has-error"  id="enable_errorMsg"/>
                    </div>
                </form>
                <div class="modal-footer">
                    <button type="button" class="model-btn" data-dismiss="modal">关闭</button>
                    <button type="button" class="model-btn" th:onclick="'javascript:formSave(\'payCusts\');'">保存</button>
                </div>
            </div>
        </div>
    </div>

</body>
</html>